package com.antunnel.system.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="bc_userbank")
public class UserBank implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="id")
	private Integer id;
	
	@ManyToOne
    @JoinColumn(name = "userid")
	private UserBase userbase;//用户编号
	
	@Column(name="bankname")
	private String bankname;//银行名称
	
	@Column(name="banknumber")
	private String banknumber;//银行卡号
	
	@Column(name="bankuser")
	private String bankuser;//持卡人姓名
	
	@Column(name="banktype")
	private Integer banktype;//银行卡类型1充值2提现
	
	@Column(name="addtime")
	private Date addtime;//操作时间
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public UserBase getUserbase() {
		return userbase;
	}
	public void setUserbase(UserBase userbase) {
		this.userbase = userbase;
	}
	public String getBankname() {
		return bankname;
	}
	public void setBankname(String bankname) {
		this.bankname = bankname;
	}
	public String getBanknumber() {
		return banknumber;
	}
	public void setBanknumber(String banknumber) {
		this.banknumber = banknumber;
	}
	public String getBankuser() {
		return bankuser;
	}
	public void setBankuser(String bankuser) {
		this.bankuser = bankuser;
	}
	public Integer getBanktype() {
		return banktype;
	}
	public void setBanktype(Integer banktype) {
		this.banktype = banktype;
	}
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	
	
	
	
}
